<template>
	<view>
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
import { urlMap } from '@/common/js/urlMap.js';
export default {
	data() {
		return {
			url: ''
		}
	},
	onLoad(options) {
		const type = options.type || '';
		const item = urlMap[type] || urlMap['test'];
		if (item) {
			uni.setNavigationBarTitle({
				title: item.title,
			});
			this.url = item.url;
		}
	}
}
</script>
